package com.tobeface.sns.domain.life;


/**
 * 
 * @author loudyn
 * 
 */
public class LifePrivacyScope {

	public final static byte EVERYBODY_CAN_VIEW = 1;
	public final static byte MY_FIRENDS_CAN_VIEW = 2;
	public final static byte MY_SELF_CAN_VIEW = 4;
	public final static byte SOME_FRIENDS_CAN_VIEW = 8;

	private byte openScope = EVERYBODY_CAN_VIEW;

	public byte getOpenScope() {
		return openScope;
	}

	protected LifePrivacyScope setOpenScope(byte openScope) {
		this.openScope = openScope;
		return this;
	}

	public LifePrivacyScope everybodyCanView() {
		return setOpenScope(EVERYBODY_CAN_VIEW);
	}

	public LifePrivacyScope myFirendsCanView() {
		return setOpenScope(MY_FIRENDS_CAN_VIEW);
	}

	public LifePrivacyScope myselfCanView() {
		return setOpenScope(MY_SELF_CAN_VIEW);
	}

	public LifePrivacyScope someFriendCanView() {
		return setOpenScope(SOME_FRIENDS_CAN_VIEW);
	}
}
